package com.itany.conf;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class TestMvcConfig implements WebMvcConfigurer {


    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/showlist").setViewName("userlist");
        registry.addViewController("/showLogin").setViewName("backend/login");
        registry.addViewController("/showSupplierExamine").setViewName("backend/supplier_examine");
        registry.addViewController("/showSupplierPlatform").setViewName("backend/supplier_platform");
        registry.addViewController("/showBookList").setViewName("backend/booklist");
        registry.addViewController("/showPermission").setViewName("backend/permission");
        registry.addViewController("/showRole").setViewName("backend/role");

    }
}
